package com.itkjb.leisurely.resource.sys.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.itkjb.leisurely.core.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
/**
 * <p>
 * 用户详情
 * </p>
 *
 * @author itkjb.com
 * @since 2020-07-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_user_info")
@ApiModel(value="SysUserInfoModel-模型", description="用户详情")
public class SysUserInfoModel extends BaseModel {

    private static final long serialVersionUID=1L;

    /**
     * 用户关联id
     */
    @ApiModelProperty(value = "用户关联id")
    private String id;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @TableField("`name`")
    private String name;

    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号")
    @TableField("`id_card_no`")
    private String idCardNo;

    /**
     * 护照号
     */
    @ApiModelProperty(value = "护照号")
    @TableField("`passport_no`")
    private String passportNo;

    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话")
    @TableField("`link_phone`")
    private String linkPhone;

    /**
     * 1：男 2：女 0：不详
     */
    @ApiModelProperty(value = "1：男 2：女 0：不详")
    @TableField("`sex`")
    private Integer sex;

    /**
     * 省id
     */
    @ApiModelProperty(value = "省id")
    @TableField("`province_id`")
    private String provinceId;

    /**
     * 市id
     */
    @ApiModelProperty(value = "市id")
    @TableField("`city_id`")
    private String cityId;

    /**
     * 县id
     */
    @ApiModelProperty(value = "县id")
    @TableField("`county_id`")
    private String countyId;

    /**
     * 县级以上名字，中间用-分割
     */
    @ApiModelProperty(value = "县级以上名字，中间用-分割")
    @TableField("`county_name`")
    private String countyName;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址")
    @TableField("`address`")
    private String address;

    /**
     * qq号
     */
    @ApiModelProperty(value = "qq号")
    @TableField("`qq_no`")
    private String qqNo;

    /**
     * 微信号
     */
    @ApiModelProperty(value = "微信号")
    @TableField("`weixi_no`")
    private String weixiNo;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    @TableField("`avatar`")
    private String avatar;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @TableField("`remark`")
    private String remark;

    /**
     * 乐观锁版本号
     */
    @ApiModelProperty(value = "乐观锁版本号")
    @Version
    @NotNull(message = "缺少版本号参数")
    @TableField("`lock_version`")
    private Long lockVersion;


}
